// 省数据接口
export interface Iprovince {
  id: number
  createTime: string
  updateTime: string
  isDeleted: number
  param: object
  parentId: number
  name: string
  value: string
  dictCode: null
  hasChildren: boolean
}

export type IprovinceList = Iprovince[]

// 医院列表数据接口
export type Status = 0 | 1
export interface IhospitalParams {
  page: number
  limit: number
  hosname?: string
  hoscode?: string
  hostype?: string
  provinceCode?: string
  cityCode?: string
  districtCode?: string
  status?: Status
}

// 医院列表数据响应数据接口

export interface IbookingRule {
  cycle: number
  releaseTime: string
  stopTime: string
  quitDay: number
  quitTime: string
  rule: string[]
}

export interface IhospitalItem {
  id: string
  createTime: string
  updateTime: string
  isDeleted: number
  param: {
    hostypeString: string
    fullAddress: string
  }
  hoscode: string
  hosname: string
  hostype: string
  provinceCode: string
  cityCode: string
  districtCode: string
  address: string
  logoData: string
  intro: string
  status: number
  bookingRule: IbookingRule
  route?: string
}

// 医院详情接口
export interface IhospitalShow {
  bookingRule?: IbookingRule
  hospital?: IhospitalItem
}

export type IhospitalList = IhospitalItem[]

export interface IhospitalListRes {
  content: IhospitalList
  totalElements: number
}

// 科室数据的接口
export interface Idep {
  depcode: string
  depname: string
  children: IdepList
  disabled?: boolean
}

export type IdepList = Idep[]

// 排班规则相关的接口

export interface IbookRule {
  workDate: string
  workDateMd: null
  dayOfWeek: string
  docCount: number
  reservedNumber: number
  availableNumber: number
  status: null
}

export type IbookingRuleList = IbookRule[]

export interface IscheduleRuleRes {
  total: number
  bookingScheduleList: IbookingRuleList
  baseMap: {
    hosname: string
  }
}

// 排班详情的接口
export interface Ischedules {
  id: string
  createTime: string
  updateTime: string
  isDeleted: number
  param: {
    dayOfWeek: string
    depname: string
    hosname: string
  }
  hoscode: string
  depcode: string
  title: string
  docname: string
  skill: string
  workDate: string
  workTime: number
  reservedNumber: number
  availableNumber: number
  amount: number
  status: number
  hosScheduleId: string
}

export type IscheduleList = Ischedules[]
